<%@ page import="br.com.qualityempresa.seguranca.RegraAcesso"%>
<!DOCTYPE html>
<html>
<head>
<meta name="layout" content="main">
<g:set var="entityName" value="${message(code: 'regraAcesso.label', default: 'RegraAcesso')}" />
<title>
	<g:message code="default.list.label" args="[entityName]" />
</title>
</head>
<body>
	<a href="#list-regraAcesso" class="skip" tabindex="-1">
		<g:message code="default.link.skip.label" default="Skip to content&hellip;" />
	</a>
	<div class="nav" role="navigation">
		<ul>
			<li>
				<a class="home" href="${createLink(uri: '/')}">
					<g:message code="default.home.label" />
				</a>
			</li>
			<li>
				<g:link class="create" action="create">
					<g:message code="default.add.label" args="[entityName]" />
				</g:link>
			</li>
		</ul>
	</div>
	<div id="list-regraAcesso" class="content scaffold-list" role="main">
		<h1>
			<g:message code="default.list.label" args="[entityName]" />
		</h1>
		<mensagem:renderizar mensagem="${flash}" />
		<table>
			<thead>
				<tr>

					<g:sortableColumn property="regra" title="${message(code: 'regraAcesso.regra.label', default: 'Regra')}" />

					<g:sortableColumn property="expressao" title="${message(code: 'regraAcesso.expressao.label', default: 'Expressao')}" />

				</tr>
			</thead>
			<tbody>
				<g:each in="${regraAcessoInstanceList}" status="i" var="regraAcessoInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">

						<td>
							<g:link action="show" id="${regraAcessoInstance.id}">
								${fieldValue(bean: regraAcessoInstance, field: "regra")}
							</g:link>
						</td>

						<td>
							${fieldValue(bean: regraAcessoInstance, field: "expressao")}
						</td>

					</tr>
				</g:each>
			</tbody>
		</table>
		<div class="pagination">
			<g:paginate total="${regraAcessoInstanceTotal}" />
		</div>
	</div>
</body>
</html>
